<?php
session_start();
if(!isset($_SESSION['admin_name']) and !isset($_POST['username']))	{Header("location:index.php");exit;}
if(isset($_POST['username']))
{
	
	if ($_POST['username']=="mdadmin" and $_POST['userpassword']=="md@234" ) 
	{
		$_SESSION['admin_name']=$_POST['username'];
		
		
		Header("location:index_admin.php");
		exit;
	}
	else
	{
		Header("location:index.php?e=1");
		exit;
	}
	
}



?>